package com.rayo.accesscontrollercopy.model.db.dao;


import com.rayo.accesscontrollercopy.model.db.bean.KeyUserData;

import java.util.Date;
import java.util.List;

/**
 * Created by yanghaojie on 16/7/27.
 */
public interface KeyUserDao {
    List<KeyUserData> findAll();

    KeyUserData findByUserid(String userId);

    void addAll(List<KeyUserData> data);

    Date addKeyUser(KeyUserData data);

    void updateAll(List<KeyUserData> data);
    void update(KeyUserData keyUserData);

    void deleteAll();

    KeyUserData findByLogin(String login);

    void deleteKeyUser(KeyUserData data);

    void deleteByKeyUserId(int keyId);
}
